import { delManyTower } from "@/apis/towerApi";
import { readBet } from "./readBet";
import { readTower } from "./readTower";
import { readFromXlsx } from "./readXlsx";

export async function readXlsx(id: number) {
  await delManyTower(id);
  await readFromXlsx(async (wb) => {
    await readTower(wb, id);
    await readBet(wb, id);
  });
}

// export async function readManyWire() {
//   await readFromXlsx(async (wb) => {
//     await readWire(wb)
//   })
// }
